package com.wry.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

/**
 * <h1>  <h1>
 *
 * @author 魏如元
 * @since 2022/10/19
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Goods {

    @ExcelProperty(value = "序号")
    private Integer index;

    @ExcelProperty(value = "产品名称")
    private String goodsName;

    @ExcelProperty(value = "规格")
    private String strand;

    @ExcelProperty(value = "备注")
    private String remark;

    public static List<Goods> createGoodsList(){
        List<Goods> goodsList = new ArrayList<>();
        Goods goods1 = new Goods(1,"WISxxx","200ml","");
        Goods goods2 = new Goods(2,"KONOxxx","500ml","");
        Goods goods3 = new Goods(3,"IRYxxx","200g","");
        goodsList.add(goods1);
        goodsList.add(goods2);
        goodsList.add(goods3);
        return goodsList;
    }
}
